#! /bin/bash
## author:tian
## jar boot

echo "api-server启动测试环境9002-后台运行"
echo kill -9 spt-api
jps | grep spt-api| awk '{print $1}' | xargs kill -9 

echo boot start
nohup java -server -Xms512M -Xmx512M -Xmn512M -XX:MetaspaceSize=256M -XX:MaxMetaspaceSize=256M   -XX:ReservedCodeCacheSize=256M -XX:MaxDirectMemorySize=512M -jar /usr/local/spt-app/spt-api.jar --server.port=9012 --spring.profiles.active=test >/dev/null 2>&1&

echo end
#end
